<?php

class FormListBox extends FormControl {
	
	public static $property = array(
		'wbtype',
		'name',
		'caption',
		'x',
		'y',
		'width',
		'height',
		'disabled',
		'sort',
		'visible'
	);		
	
	public function __construct() { 
		parent::__construct(array(
			'wbtype' => 'ListBox',
			'x' => 0,
			'y' => 0,
			'width' => 100,
			'height' => 50,
			'caption' => "abc,안뇽,abc",
			'multiline' => true
		));
	}

	/**
	 * 컨트롤 그리기 
	 * 
	 * @param WBGraphics $graphics
	 */
	public function displayControl(WBGraphics $g) {

		$editbox = new FormEditBox();
		$editbox['caption'] = $this['caption'];
		$editbox['x'] = $this['x'];
		$editbox['y'] = $this['y'];
		$editbox['width'] = $this['width'];
		$editbox['height'] = $this['height'];
		$editbox['multiline'] = $this['multiline'];
		$editbox['disabled'] = $this['disabled'];

		$editbox->displayControl($g);
	}
	
	
	public function getProperty() { 
		return self::$property;
	}	
}


?>